package com.etd.workflow.domin;

import java.util.List;

import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.MappedSuperclass;
import javax.persistence.Transient;

import com.etd.base.domain.impl.BaseDomain;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;


@MappedSuperclass
@Inheritance(strategy = InheritanceType.TABLE_PER_CLASS)
@JsonIgnoreProperties(value={"hibernateLazyInitializer","handler"})
public class BaseFlowDomain extends BaseDomain {
	
	
	private Long userid;
	
	private String userName;
	
	protected String flowid;	

	private String flowName;
	
	private String flowInstId;
	
	@Transient
	private String flowTaskId;
	@Transient
	private String flowState;
	
	@Transient
	private String task_def_key;
	
	private Long deptid;
	
	private String deptName;
	
	protected String fullBizcode;
	
	/*
	 * 流程执行状态标志：
	 * 	1：执行中
	 *  0：已结束
	 *  -1：已删除
	 */
	@Transient
	private Long flowStatus;
	
	@Transient
	private List<VOHistoric> historics;
	

	public String getFlowid() {
		return flowid;
	}

	public void setFlowid(String flowid) {
		this.flowid = flowid;
	}

	public String getFlowName() {
		return flowName;
	}

	public void setFlowName(String flowName) {
		this.flowName = flowName;
	}

	public String getFlowState() {
		return flowState;
	}

	public void setFlowState(String flowState) {
		this.flowState = flowState;
	}

	
	public String getDeptName() {
		// TODO Auto-generated method stub
		return deptName;
	}

	
	public void setDeptName(String deptname) {
		// TODO Auto-generated method stub
		this.deptName = deptname;
	}

	
	public Long getDeptid() {
		// TODO Auto-generated method stub
		return this.deptid;
	}

	
	public void setDeptid(Long deptid) {
		// TODO Auto-generated method stub
		this.deptid = deptid;
	}

	
	public Long getUserid() {
		// TODO Auto-generated method stub
		return this.userid;
	}

	
	public void setUserid(Long userid) {
		// TODO Auto-generated method stub
		this.userid = userid;
	}

	
	public String getUserName() {
		// TODO Auto-generated method stub
		return this.userName;
	}

	
	public void setUserName(String username) {
		// TODO Auto-generated method stub
		this.userName = username;
	}

	
	public String getFullBizcode() {
		// TODO Auto-generated method stub
		return this.fullBizcode;
	}

	
	public void setFullBizcode(String bizcode) {
		// TODO Auto-generated method stub
		this.fullBizcode = bizcode;
	}

	public String getFlowInstId() {
		return flowInstId;
	}

	public void setFlowInstId(String flowInstId) {
		this.flowInstId = flowInstId;
	}

	
	public List<VOHistoric> getHistorics() {
		// TODO Auto-generated method stub
		return this.historics;
	}

	
	public void setHistorics(List<VOHistoric> historics) {
		// TODO Auto-generated method stub
		this.historics = historics;
	}

	public String getFlowTaskId() {
		return flowTaskId;
	}

	public void setFlowTaskId(String flowTaskId) {
		this.flowTaskId = flowTaskId;
	}

	public Long getFlowStatus() {
		return flowStatus;
	}

	public void setFlowStatus(Long flowStatus) {
		this.flowStatus = flowStatus;
	}

	public String getTask_def_key() {
		return task_def_key;
	}

	public void setTask_def_key(String task_def_key) {
		this.task_def_key = task_def_key;
	}
	
	
	
}
